package com.xindz.hgq.database.greendao.bean;

import com.xindz.hgq.database.greendao.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.ByteArrayInputStream;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;


/**
 * @name HGQBase
 * @class name：com.xindz.hgq.database.greendao.bean
 * @describe describe
 * @anthor XINDZ
 * @time 2018/5/31 11:11
 * @change
 * @chang time
 * @class describe
 */
@Entity(active = true)
public class LztxBean implements Serializable {
    private static final long serialVersionUID = -384166435454547985L;
    /**
     * 字符串主键
     */
    @Id
    @Property(nameInDb = "objectId")
    private String objectId;

    private Byte aByte;

    private Integer aInteger;

    private Short aShort;

    private Long aLong;

    private Boolean aBoolean;

    private Double aDouble;

    private Float aFloat;

    private Date date;

    private byte[] abyteArray;

    @Convert(converter = StringConverter.class, columnType = String.class)
    private List<String> alist;
    /** Used to resolve relations */
    @Generated(hash = 2040040024)
    private transient DaoSession daoSession;
    /** Used for active entity operations. */
    @Generated(hash = 40011559)
    private transient LztxBeanDao myDao;

    @Generated(hash = 909896945)
    public LztxBean(String objectId, Byte aByte, Integer aInteger, Short aShort, Long aLong,
            Boolean aBoolean, Double aDouble, Float aFloat, Date date, byte[] abyteArray,
            List<String> alist) {
        this.objectId = objectId;
        this.aByte = aByte;
        this.aInteger = aInteger;
        this.aShort = aShort;
        this.aLong = aLong;
        this.aBoolean = aBoolean;
        this.aDouble = aDouble;
        this.aFloat = aFloat;
        this.date = date;
        this.abyteArray = abyteArray;
        this.alist = alist;
    }

    @Generated(hash = 1381668945)
    public LztxBean() {
    }

    public String getObjectId() {
        return this.objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public Byte getAByte() {
        return this.aByte;
    }

    public void setAByte(Byte aByte) {
        this.aByte = aByte;
    }

    public Integer getAInteger() {
        return this.aInteger;
    }

    public void setAInteger(Integer aInteger) {
        this.aInteger = aInteger;
    }

    public Short getAShort() {
        return this.aShort;
    }

    public void setAShort(Short aShort) {
        this.aShort = aShort;
    }

    public Long getALong() {
        return this.aLong;
    }

    public void setALong(Long aLong) {
        this.aLong = aLong;
    }

    public Boolean getABoolean() {
        return this.aBoolean;
    }

    public void setABoolean(Boolean aBoolean) {
        this.aBoolean = aBoolean;
    }

    public Double getADouble() {
        return this.aDouble;
    }

    public void setADouble(Double aDouble) {
        this.aDouble = aDouble;
    }

    public Float getAFloat() {
        return this.aFloat;
    }

    public void setAFloat(Float aFloat) {
        this.aFloat = aFloat;
    }

    public byte[] getAbyteArray() {
        return this.abyteArray;
    }

    public void setAbyteArray(byte[] abyteArray) {
        this.abyteArray = abyteArray;
    }

    public List<String> getAlist() {
        return this.alist;
    }

    public void setAlist(List<String> alist) {
        this.alist = alist;
    }

    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 128553479)
    public void delete() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.delete(this);
    }

    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 1942392019)
    public void refresh() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.refresh(this);
    }

    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 713229351)
    public void update() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.update(this);
    }

    public Date getDate() {
        return this.date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    /** called by internal mechanisms, do not call yourself. */
    @Generated(hash = 512435427)
    public void __setDaoSession(DaoSession daoSession) {
        this.daoSession = daoSession;
        myDao = daoSession != null ? daoSession.getLztxBeanDao() : null;
    }

}
